package com.juc.blockingQueue.PriorityBlockingQueue;

public class Userinfo implements Comparable<Userinfo>{

	private int id;
	
    public Userinfo() {
		super();
	}
    
	public Userinfo(int id) {
		super();
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	

	@Override
	public int compareTo(Userinfo o) {
		if (this.getId() < o.getId()) {
			return -1;
		}
		if (this.getId() > o.getId()) {
			return  1;
		}
		return 0;
	}

}
